#CFLAGS:= -O3 -g -Wall -Werror
CFLAGS:= -ofast -g -Wall -Werror

all: MyCat MyTab Expr Prime Sysinfo TestDaemon Client Server ftp ftpd

MyCat: MyCat.c
	gcc $(CFLAGS) -o $@ $+ 

MyTab: MyTab.c
	gcc $(CFLAGS) -o $@ $+ 

Expr: Expr.c
	gcc $(CFLAGS) -o $@ $+ 

Prime: Prime.c
	gcc $(CFLAGS) -o $@ $+ 
	
Sysinfo: Sysinfo.c
	gcc $(CFLAGS) -o $@ $+ 

TestDaemon: TestDaemon.c
	gcc $(CFLAGS) -o $@ $+ 

Client: Client.c
	gcc $(CFLAGS) -o $@ $+ 

Server: Server.c
	gcc $(CFLAGS) -o $@ $+ 

ftp: ftp.c
	gcc $(CFLAGS) -o $@ $+ 

ftpd: ftpd.c
	gcc $(CFLAGS) -o $@ $+ 

clean:
	rm -f a.out 
	rm -f MyCat MyTab Expr Prime Sysinfo TestDaemon Client Server ftp ftpd
